import { defineConfig } from "umi";
import routes from './routes';

export default defineConfig({
  routes: routes,
  npmClient: 'npm',
  history: {
    type: 'browser'
  },
  title: 'DSL辅助生成',
  favicons: ['/favicon.ico'],
  mock: {
    include: ['mock/**/*.ts'],
  },
  proxy: {
    '/api': {
      target: 'http://localhost:8000',
      changeOrigin: true,
    },
  },
  extraPostCSSPlugins: [
    require('@tailwindcss/postcss7-compat'),
    require('autoprefixer'),
  ],
}); 